package Buildings.dwelling.hotel;
import Interfaces.*;
import Buildings.dwelling.*;
public class HotelFactory implements BuildingFactory {
    @Override
    public Space createSpace(double area){
        return new Flat(area);
    }
    @Override
    public Space createSpace(int rooms,double area){
        return new Flat(rooms,area);
    }
    @Override
    public Floor createFloor(int spaces){
        return new HotelFloor(spaces);
    }
    @Override
    public Floor createFloor(Space ... spaces){
        return new HotelFloor(spaces);     
    }
    @Override
    public Building createBuilding(int floorsCount,int ... spaces){
        return new Hotel(floorsCount,spaces);
    }
    @Override
    public Building createBuilding(Floor ... floors){
        return new Hotel(floors);
    }
}
